import { defineConfig } from "vitepress";

// https://vitepress.dev/reference/site-config
export default defineConfig({
    title: "Caih Admin Pro",
    description: "业务中台，admin template",
    themeConfig: {
        // https://vitepress.dev/reference/default-theme-config
        nav: [
            { text: "指南", link: "/guide/" },
            { text: "组件", link: "/components/change-password.html" },
        ],

        sidebar: {
            "/guide/": [
                {
                    text: "入门",
                    items: [
                        { text: "开始使用", link: "/guide/" },
                        { text: "新手须知", link: "/guide/introduction.html" },
                    ],
                },
                {
                    text: "基础使用",
                    items: [
                        { text: "启动项目", link: "/guide/development.html" },
                        { text: "文件夹结构", link: "/guide/folder.html" },
                    ],
                },
                {
                    text: "页面开发",
                    items: [
                        { text: "新增页面", link: "/guide/new-page.html" },
                        { text: "路由配置", link: "/guide/router.html" },
                        { text: "页面布局", link: "/guide/layout.html" },
                    ],
                },
                {
                    text: "数据管理",
                    items: [
                        { text: "权限管理", link: "/guide/authority-management.html" },
                        { text: "预置数据管理", link: "/guide/stores.html" },
                    ],
                },
                {
                    text: "后端集成",
                    items: [
                        { text: "环境变量", link: "/guide/environment-variable.html" },
                        { text: "网络请求", link: "/guide/request.html" },
                        { text: "代理", link: "/guide/proxy.html" },
                        { text: "调试", link: "/guide/debug.html" },
                    ],
                },
                {
                    text: "构建和部署",
                    items: [
                        { text: "构建", link: "/guide/build.html" },
                        { text: "部署", link: "/guide/deploy.html" },
                    ],
                },
            ],
            "/components/": [
                {
                    text: "内置组件",
                    items: [
                        { text: "change-password", link: "/components/change-password.html" },
                        { text: "counter", link: "/components/counter.html" },
                        { text: "forget-password", link: "/components/forget-password.html" },
                        { text: "login", link: "/components/login.html" },
                        { text: "password", link: "/components/password.html" },
                        { text: "register", link: "/components/register.html" },
                        { text: "register-success", link: "/components/register-success.html" },
                        { text: "result", link: "/components/result.html" },
                        { text: "captcha", link: "/components/captcha.html" },
                    ],
                },
            ],
        },

        socialLinks: [{ icon: "github", link: "https://gitee.com/kiteoath/caih-admin-template-vue.git" }],

        footer: {
            message: "Released under the MIT License.",
            copyright: "Copyright © 中国-东盟信息港有限公司, All Rights Reserved.",
        },
    },
});
